const axios = require('axios')
//歌手描述详情
async function desc(id) {
    var info = await axios({
        method: 'get',
        baseURL: 'http://jd.cctv005.com',
        url: '/artist/desc',
        port: 3000,
        params: {
            id: id
        }
    })
    return info
}

//获取歌手热门歌曲
async function artists(id) {
    var info = await axios({
        method: 'get',
        baseURL: 'http://jd.cctv005.com',
        url: '/artists',
        port: 3000,
        params: {
            id: id
        }
    })
    return info
}
export default {
    desc,
    artists
}